.nb-notebook {
  line-height: 1.5;
}

@media (max-width: 1400px) {
  .nb-notebook {
    margin-left: 60px;
  }
}

@media (max-width: 800px) {
  .nb-notebook {
    margin-left: 0;
    margin-right: 0;
  }

  .nb-output,
  .nb-input {
    margin-top: 3em;
  }

  .nb-output::before,
  .nb-input::before {
    left: 0 !important;
    transform: translateY(-1.5em);
    text-align: left !important;
  }
}

.nb-stdout,
.nb-stderr {
  white-space: pre-wrap;
  margin: 1em 0;
  padding: 0.1em 0.5em;
}

.nb-stderr {
  background-color: #faa;
}

.nb-cell {
  position: relative;
}

.nb-cell + .nb-cell {
  margin-top: 0.5em;
}

.nb-output table {
  border: 1px solid #000;
  border-collapse: collapse;
}

.nb-output th {
  font-weight: bold;
}

.nb-output th,
.nb-output td {
  border: 1px solid #000;
  padding: 0.25em;
  text-align: left;
  vertical-align: middle;
  border-collapse: collapse;
}

.nb-notebook blockquote {
  border-left: 5px solid #ccc;
  margin-left: 0;
  padding-left: 1em;
}

.nb-raw-cell {
  white-space: pre-wrap;
  background-color: #f5f2f0;
  font-family: Consolas, Monaco, "Andale Mono", monospace;
  padding: 1em;
  margin: 0.5em 0;
}

.nb-output {
  min-height: 1em;
  width: 100%;
  overflow-x: auto;
  border-right: 1px dotted #ccc;
}

.nb-output img {
  max-width: 100%;
}

.nb-output::before,
.nb-input::before {
  position: absolute;
  font-family: monospace;
  color: #999;
  left: -7.5em;
  width: 7em;
  text-align: right;
}

.nb-input::before {
  content: "In [" attr(data-prompt-number) "]:";
}

.nb-output::before {
  content: "Out [" attr(data-prompt-number) "]:";
}

div[style="max-height:1000px;max-width:1500px;overflow:auto;"] {
  max-height: none !important;
}
